package com.halobop.demo.admin.dto;

import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

public class SMSVerifyDto {

    @NotNull
    @Pattern(regexp = "^[1][3, 4, 5, 7, 8][0-9]{9}$")
    @ApiModelProperty(value = "手机号码")
    private String phoneNumber;

    @NotNull
    @ApiModelProperty(value = "验证码")
    private String authCode;

    public String getPhoneNumber() {
        return phoneNumber;
    }

    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    public String getAuthCode() {
        return authCode;
    }

    public void setAuthCode(String authCode) {
        this.authCode = authCode;
    }

    @Override
    public String toString() {
        return "SMSVerifyDto{" +
                "phoneNumber='" + phoneNumber + '\'' +
                ", authCode='" + authCode + '\'' +
                '}';
    }
}
